/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.ejb.interfaces;

import com.comut.crud.pojo.fleet.Fleet;
import com.comut.lib.exception.ObjectFoundException;
import com.comut.lib.exception.ObjectNotFoundException;
import javax.jws.WebMethod;

/**
 *
 * @author asantos
 */
public interface IFleetAction {
     /**
     * Inserts Fleet on the database
     *
     * @param fleet the {@link Fleet} to be inserted
     * @return the inserted {@link Fleet}
     */
    @WebMethod
    public Fleet insertFleet(Fleet fleet) throws ObjectFoundException;

    /**
     * Deletes a Fleet from the database
     *
     * @param fleet the {@link Fleet} to be deleted
     */
    @WebMethod
    public void deleteFleet(Fleet fleet) throws ObjectNotFoundException;

    /**
     * Update a event on the database
     *
     * @param fleet the update {@link fleet}     * 
     */
    @WebMethod
    public void updateFleet(String fleet) throws ObjectNotFoundException;

    /**
     * Gets a Fleet from the database
     *
     * @param fleet the {@link Fleet} to be found
     * @return the {@link Fleet} found
     */
    @WebMethod
    public Fleet getFleet(Fleet fleet) throws ObjectNotFoundException;
    
}
